package com.repair.controller;


import com.repair.entity.model.User;
import com.repair.service.UserService;
import com.repair.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户组：用于用户前端身份和鉴权 前端控制器
 * </p>
 *
 * @author tianwenle
 * @since 2023-04-12
 */
@RestController
@RequestMapping("/user/users")
public class UserGroupController {

    @Autowired
    private UserService userService;

    @RequestMapping("/test1")
    public R getAll(){
        // 查询表格中全部信息
        List<User> list = userService.list();

        System.out.println("list = " + list);



        return R.ok().data("list",list);
    }



}

